<template>
  <el-container class="content">
    <el-aside width="200px" class="menu">
      <!-- 管理员信息 -->
      <div class="menu-title">
        <el-button type="text" class="btn-out" @click="getIndex()">后台数据管理系统</el-button>
      </div>
      <app-menu />
    </el-aside>
    <el-container>
      <!-- header -->
      <el-header class="header">
        <app-header />
      </el-header>
      <!-- 内容显示区域 -->
      <el-main class="main">
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Header from "../components/Header";
import Footer from "../components/Footer";
import Menu from "../components/Menu";

export default {
  components: {
    "app-header": Header,
    "app-footer": Footer,
    "app-menu": Menu,
  },
  methods:{
    getUser(){
      this.user = window.sessionStorage.getItem('name')
      this.circleUrl = window.sessionStorage.getItem('image')
    },
    getIndex(){
      this.$router.push("/index")
    }
  }
};
</script>

<style scoped>
.content,
.aside {
  height: 100%;
}
.menu{
  background-color: #353268;
  /* box-shadow: 1px 1px 10px #353268; */
}
.menu-title{
  padding: 40px 0px;
  line-height: normal;
}
.btn-out{
  color: #f3f3f3;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
}
.header {
  background-color: transparent;
  border-bottom: 2px solid #EEEFF1;
}
.footer {
  background-color: transparent;
}
.main {
  background-color: transparent;
}

</style>

